package com.example.picturestorage.mapper;

import com.example.picturestorage.bean.Role;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
@CacheNamespace
public interface RoleMapper {
    Role selectOneRole(Integer id);
    List<Role> selectRoleList();
    List<Role> selectRoleByCondition(Role role);
    int updateOneByCondition(Role role);
}
